package main

import (
	"Gee/day1-http-base/base3/gee"
	"fmt"
	"net/http"
)

func main() {
	app := gee.New()
	app.GET("/", func(writer http.ResponseWriter, request *http.Request) {
		fmt.Fprintln(writer, request.Method)
		fmt.Fprintln(writer, request.URL.Path)
	})

	app.GET("/hello", func(writer http.ResponseWriter, request *http.Request) {
		fmt.Fprintln(writer, request.Method)
		fmt.Fprintln(writer, request.URL.Path)
	})
	app.Run(":8080")
}
